import React, { Component } from 'react'
import All from './All/All'
import Course from './Course/Course'
import Forum from './Forum/Forum'
import Score from './Score/Score'
export default class Middware extends Component {
    render() {
        const { historyName } = this.props
        // console.log(this.props.historyName);
        if (historyName === '全部') return (<All />)
        if (historyName === '课程') return (<Course />)
        if (historyName === '曲谱') return (<Score />)
        if (historyName === '论坛') return (<Forum />)
        return (
            <All />
        )
    }
}
